<?php
/* @var $this ProdutoController */
/* @var $model Produto */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'produto-form',
        'enableAjaxValidation' => false,
    ));
    ?>



    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'especie_id'); ?>
        <?php echo $form->dropDownList($model, 'especie_id', CHtml::listData(Especie::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Especie', "class" => "form-control")); ?>

        <?php echo $form->error($model, 'especie_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'tipo_id'); ?>
        <?php echo $form->dropDownList($model, 'tipo_id', CHtml::listData(Tipo::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Tipo', "class" => "form-control")); ?>

        <?php echo $form->error($model, 'tipo_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'variedade_id'); ?>
        <?php echo $form->dropDownList($model, 'variedade_id', CHtml::listData(Variedade::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Variedade', "class" => "form-control")); ?>
        <?php echo $form->error($model, 'variedade_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'grupo_id'); ?>
        <?php echo $form->textField($model, 'grupo_id', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'grupo_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'tabuleiro_id'); ?>
        <?php echo $form->dropDownList($model, 'tabuleiro_id', CHtml::listData(Tabuleiro::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Tabuleiro', "class" => "form-control")); ?>

        <?php echo $form->error($model, 'tabuleiro_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'maquina_sementeira_id'); ?>
        <?php echo $form->dropDownList($model, 'maquina_sementeira_id', CHtml::listData(Especie::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Maquina', "class" => "form-control")); ?>

        <?php echo $form->error($model, 'maquina_sementeira_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'substrato_id'); ?>
        <?php echo $form->dropDownList($model, 'substrato_id', CHtml::listData(Especie::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Substrato', "class" => "form-control")); ?>
        <?php echo $form->error($model, 'substrato_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'semente_id'); ?>
        <?php echo $form->dropDownList($model, 'semente_id', CHtml::listData(Especie::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Semente', "class" => "form-control")); ?>
        <?php echo $form->error($model, 'semente_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'tempo_viveiro_id'); ?>
        <?php echo $form->textField($model, 'tempo_viveiro_id', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'tempo_viveiro_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'resistencia_tolerancia_id'); ?>
        <?php echo $form->textField($model, 'resistencia_tolerancia_id', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'resistencia_tolerancia_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'fornecedor_id'); ?>
        <?php echo $form->dropDownList($model, 'fornecedor_id', CHtml::listData(Especie::model()->findAll(), 'id', 'descricao'), array('prompt' => 'Select Fornecedor', "class" => "form-control")); ?>

        <?php echo $form->error($model, 'fornecedor_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'cor'); ?>
        <?php echo $form->textField($model, 'cor', array('size' => 7, 'maxlength' => 7)); ?>
        <?php echo $form->error($model, 'cor'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'profundidade'); ?>
        <?php echo $form->textField($model, 'profundidade', array('size' => 20, 'maxlength' => 20)); ?>
        <?php echo $form->error($model, 'profundidade'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'pente'); ?>
        <?php echo $form->textField($model, 'pente', array('size' => 20, 'maxlength' => 20)); ?>
        <?php echo $form->error($model, 'pente'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'rolo'); ?>
        <?php echo $form->textField($model, 'rolo', array('size' => 20, 'maxlength' => 20)); ?>
        <?php echo $form->error($model, 'rolo'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'nome_cientifico'); ?>
        <?php echo $form->textField($model, 'nome_cientifico', array('size' => 60, 'maxlength' => 80)); ?>
        <?php echo $form->error($model, 'nome_cientifico'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'recomendacoes'); ?>
        <?php echo $form->textArea($model, 'recomendacoes', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'recomendacoes'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'caracteristicas_agronomicas'); ?>
        <?php echo $form->textArea($model, 'caracteristicas_agronomicas', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'caracteristicas_agronomicas'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'caracteristicas_comerciais'); ?>
        <?php echo $form->textArea($model, 'caracteristicas_comerciais', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'caracteristicas_comerciais'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'data_plantacao'); ?>
        <?php echo $form->textField($model, 'data_plantacao'); ?>
        <?php echo $form->error($model, 'data_plantacao'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'created_at'); ?>
        <?php echo $form->textField($model, 'created_at'); ?>
        <?php echo $form->error($model, 'created_at'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'updated_at'); ?>
        <?php echo $form->textField($model, 'updated_at'); ?>
        <?php echo $form->error($model, 'updated_at'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->